﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCLink.cs
// project ：YunCMS
// Build time：2012-09-09
// modify:
// description:
// ===================================================================
using System;
namespace YunCMS.Model
{
	/// <summary>
	///YCLink Model
	/// </summary>
	[Serializable]
	public class YCLink
	{
		#region 
		private int _id;
		private string _url = String.Empty;
		private string _imageurl = String.Empty;
		private string _linkname = String.Empty;
		private int? _ordernumber;
		private bool? _active;
		private string _info = String.Empty;
		private DateTime? _updatetime;
		private int? _linktype;
		private string _style = String.Empty;
		private string _email = String.Empty;
		#endregion
		
		#region 
		///<summary>
		///Constructor
		///</summary>
		public YCLink()
		{
		}
		///<summary>
		///Constructor
		///</summary>
		public YCLink
		(
			int id,
			string url,
			string imageurl,
			string linkname,
			int? ordernumber,
			bool? active,
			string info,
			DateTime? updatetime,
			int? linktype,
			string style,
			string email
		)
		{
			_id          = id;
			_url         = url;
			_imageurl    = imageurl;
			_linkname    = linkname;
			_ordernumber = ordernumber;
			_active      = active;
			_info        = info;
			_updatetime  = updatetime;
			_linktype    = linktype;
			_style       = style;
			_email       = email;
			
		}
		#endregion
		
		#region 
		
		///<summary>
		///ID
		///</summary>
		public int ID
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///Url of link
		///</summary>
		public string Url
		{
			get {return _url;}
			set {_url = value;}
		}

		///<summary>
		///Logo image of link's
		///</summary>
		public string ImageUrl
		{
			get {return _imageurl;}
			set {_imageurl = value;}
		}

		///<summary>
		///LinkName
		///</summary>
		public string LinkName
		{
			get {return _linkname;}
			set {_linkname = value;}
		}

		///<summary>
		///Order Number
		///</summary>
		public int? OrderNumber
		{
			get {return _ordernumber;}
			set {_ordernumber = value;}
		}

		///<summary>
		///Active
		///</summary>
		public bool? Active
		{
			get {return _active;}
			set {_active = value;}
		}

		///<summary>
		///Information of link
		///</summary>
		public string Info
		{
			get {return _info;}
			set {_info = value;}
		}

		///<summary>
		///Add or update time
		///</summary>
		public DateTime? UpdateTime
		{
			get {return _updatetime;}
			set {_updatetime = value;}
		}

		///<summary>
		///Link type
		///</summary>
		public int? LinkType
		{
			get {return _linktype;}
			set {_linktype = value;}
		}

		///<summary>
		///Style
		///</summary>
		public string Style
		{
			get {return _style;}
			set {_style = value;}
		}

		///<summary>
		///Email
		///</summary>
		public string Email
		{
			get {return _email;}
			set {_email = value;}
		}
	
		#endregion	
	}
}



